TAGs: piecewise function calculator